from commonFactory.AbsFactoryLogin import AFactoryLogin
from commonFactory.impl.TtzFactoryUrl import TTZFactoryUrl
from pojo.TtsLogin import TTS_Login


class TTZFactoryLogin(AFactoryLogin):
    """
        Burl : 地址信息
        BInfo : 平台信息
    """
    def createBaseLogin(self,BInfo,phone,password,verificationCode=None):
        loginVO = TTS_Login()
        # 地址信息
        loginVO.burl = TTZFactoryUrl().createUrl()
        # 平台信息
        loginVO.bInfo = BInfo.setName()
        # 登录信息
        loginVO.userPhone = phone
        loginVO.userPassword = password
        return loginVO